﻿@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Web.Framework.UI
@{
    //add browser specific CSS files
    var browser = Request.Browser;
    if (browser.Browser == "IE" && browser.MajorVersion == 6)
    {
        Html.AppendCssFileParts("cStyles/ie6.css");
    }
    else if (browser.Browser == "IE" && browser.MajorVersion == 7)
    {
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/ie7.css");
    }
    
    //add main CSS file
    var supportRtl = EngineContext.Current.Resolve<IWorkContext>().WorkingLanguage.Rtl;
    if (supportRtl)
    {
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/styles.rtl.css");
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/bootstrap/bootstrap-smsbox-theme-rtl.css");
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/bootstrap/bootstrap-rtl.css");
        Html.AppendCssFileParts("~/Content/jquery-ui-themes/smoothness/jquery-ui-1.10.0.custom.min.css");
        Html.AddScriptParts(ResourceLocation.Foot, "~/Themes/smsbox/Content/Scripts/bootstrap/bootstrap-rtl.js", true);
    }
    else
    {
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/styles.css");
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/bootstrap/bootstrap-smsbox-theme.css");
        Html.AppendCssFileParts("~/Themes/smsbox/Content/Styles/bootstrap/bootstrap.min.css");
        Html.AppendCssFileParts("~/Content/jquery-ui-themes/smoothness/jquery-ui-1.10.0.custom.min.css");
        Html.AddScriptParts(ResourceLocation.Foot, "~/Themes/smsbox/Content/Scripts/bootstrap/bootstrap.min.js", true);
    }

}